-- GENERATED SPELL FOR [Syndicate Shadow Mage] --


function spell0_2244(pUnit, Event) --@Curse of Thorns,n/a--
pUnit:FullCastSpellOnTarget(6909,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2244', 2000, 1)
end

function spell1_2244(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(20791,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2244', 3000, 1)
end

function Sorts_2244(pUnit, Event)
local choix_sorts_2244 = math.random(0, 1)
if choix_sorts_2244 == 0 then
pUnit:RegisterEvent('spell0_2244', 1, 1)
end
if choix_sorts_2244 == 1 then
pUnit:RegisterEvent('spell1_2244', 1, 1)
end
end

function mob2244_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2244', math.random(1500, 3000), 1)
end

function mob2244_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2244_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2244_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2244, 1, 'mob2244_Action')
RegisterUnitEvent(2244, 2, 'mob2244_Leave')
RegisterUnitEvent(2244, 3, 'mob2244_Kill')
RegisterUnitEvent(2244, 4, 'mob2244_Die')
